import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';


export type CenterInfoDocumentType = HydratedDocument<Center_Info>;

@Schema()
export class Center_Info {
  @Prop({ required: true })
  manufacturers: string; // 制造商

  @Prop({ required: true })
  capacity: string; // 容量

  @Prop({ required: true })
  cpu_slot: string; // CPU插槽

  @Prop({ required: true })
  memory_interface: string; // 内存接口

  @Prop({ required: true })
  pci_e: string; // PCI-E

  @Prop({ required: true })
  pci_e_slot: string; // PCI-E插槽

  @Prop({ required: true })
  power_interface: string; // 电源接口

  @Prop({ required: true })
  series: string; // 芯片代号

  @Prop({ required: true })
  memory_sum: string; // 内存总数

  @Prop({ required: true })
  memory_type: string; // 内存类型

  @Prop({ required: true })
  video_interface: string; // 显卡接口

  @Prop({ required: true })
  price: number; // 价格

  @Prop({ required: true })
  img_url_arr: string[]; // 图片地址

  @Prop({ required: true })
  score: number; // 性能评分
}

export const CenterInfoSchema = SchemaFactory.createForClass(Center_Info);

